body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    /* background-image: linear-gradient(to bottom right,
    #91defe,
    #99c0f9,
    #bdb6ec,
    #d7b3e3,
    #efb3d5,
    #f9bccc);
    animation: gradientAnimation 10s ease infinite;  */
    /* background-image: url('./images/background.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed;  */
}

/* 定义渐变动画 */
/* @keyframes gradientAnimation {
    0% {
        background-image: linear-gradient(to bottom right,
            #91defe,
            #99c0f9,
            #bdb6ec,
            #d7b3e3,
            #efb3d5,
            #f9bccc);
    }
    50% {
        background-image: linear-gradient(to bottom right,
            #f9bccc,
            #efb3d5,
            #d7b3e3,
            #bdb6ec,
            #99c0f9,
            #91defe);
    }
    100% {
        background-image: linear-gradient(to bottom right,
            #91defe,
            #99c0f9,
            #bdb6ec,
            #d7b3e3,
            #efb3d5,
            #f9bccc);
    }
} */

#videoBG{
    position: fixed;
    z-index: -1;
    width: 100%;
    height: auto;
}

@media (min-aspect-ratio: 16/9) {
    #videoBG{
        width: 100%;
        height: auto;
    }
}

@media (max-aspect-ratio: 16/9) {
    #videoBG{
        width: auto;
        height: 100%;
    }
}

/* @media (max-width: 767px)
{
    #videoBG{
        display: none;
    }
    body{
        background: url(./assets/images/poster.jpg);
        background-size: cover;
    }
} */
/* 当移动端访问时，将视频替换为静态图片 */

/* 导航栏样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: white;
    height: 70px;
}
/* logo图片样式 */
header .logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-left: 10px;
    text-shadow: 2px 2px 4px #000000; 
}

header .logo img {
    width: 40px; /* 调整logo图片大小 */
    margin-right: 10px;
}
header .nav-links {
    font-size: 16px;
    display: flex;          /* 使用 flex 布局 */
    justify-content: space-between; /* 使元素左右分布 */
    align-items: center;    /* 垂直居中 */
}
header .nav-links a {
    color: white;
    margin-right: 20px;
    padding: 8px 16px;           
    border-radius: 20px; 
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.6);
}


header .nav-links a:hover {
    background-color: var(--main-200) !important;  /* 悬停时背景变为透明白色 */
}


.circle-button {
    display: inline-flex;            /* 设置为行内弹性盒子 */
    justify-content: center;         /* 使内容水平居中 */
    align-items: center;             /* 使内容垂直居中 */
    width: 120px;                     /* 设置按钮的宽度 */
    height: 40px;                    /* 设置按钮的高度 */
    background-color: rgba(255, 255, 255, 0.3);       /* 按钮的背景颜色 */
    border-radius: 50%;              /* 圆形效果 */
    color: white;                    /* 图标颜色 */
    text-decoration: none;           /* 移除链接的下划线 */
    font-size: 15px;                 /* 图标的大小 */
    transition: background-color 0.3s, transform 0.3s; /* 添加过渡效果 */
}

.circle-button:hover {
    transform: scale(1.1);            /* 悬停时放大按钮 */
}

.circle-button i {
    display: inline-block;
}

/* 页面布局容器 */
.container {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    height: calc(100vh - 60px); /* 减去导航栏高度 */
}

/* 左侧按钮样式 */
.left-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 30%;
    gap: 15px;
   
}
.left-side button {
    padding: 12px 20px;
    width: 100%;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
.left-side button:hover {
    background-color: #0056b3;
}
/* 按钮布局 */
.button-row {
    display: flex;
    gap: 15px;
    width: 100%;
}
.button-row button {
    width: 48%; /* 使按钮占一行的宽度，并留有间隙 */
}
.button-row.full-width button {
    width: 100%; /* 单个按钮独占一行 */
}

/* 右侧图像展示区样式 */
.right-side {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 75%;
    gap: 30px;
    position: relative;
}
.image-container {
    color: aliceblue;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed #ccc;
    border-radius: 15px;
    padding: 20px;
    gap: 20px;
    background: rbga(255,255,255,0.6);
    box-shadow: 3px 3px 10px rbga(0,0,0,0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    
}
.image-title {
    color: aliceblue;
    margin-bottom: 8px;
    font-size: 25px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-shadow: 2px 2px 4px #000000; 
}
.image-container img {
    width: 350px; /* 设置固定宽度 */
    height: 350px; /* 设置固定高度 */
    object-fit: cover; /* 确保图片裁剪并填充区域 */
    border-radius: 8px;
    display: block;
}

#ProgressImageCanvas {
    border-radius: 8px;
    border: 1px solid #000;
}
/* #showTypeCard {
    position: absolute;
    color: #333;
    padding: 10px;
    background-color: white;
    border: 1px solid black;
    display: none;
    z-index: 1000;
} */

#showTypeCard {
    position: absolute;
    color: #333;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 8px; /* 圆角效果 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 添加轻微阴影 */
    display: none;
    z-index: 1000;
    font-size: 14px;
    font-weight: bold;
    max-width: 250px;
    transition: transform 0.2s ease, opacity 0.2s ease; /* 添加过渡效果 */
    pointer-events: none; /* 防止影响鼠标事件 */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}


/* 占位符文本样式 */
/* .image-container div::before {
    content: "图片加载失败";
    color: #888;
    font-size: 16px;
    text-align: center;
    position: absolute;
} */

/* 图片加载占位效果 */
.image-container img:empty {
    background-color: #d3d3d3; /* 背景色，图片加载失败时可见 */
}

/* 面板容器的样式 */
#setRightPanel {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100%;
    /* background: linear-gradient(to bottom right, rgba(173, 216, 230, 1), rgba(240, 248, 255, 1)); */
    /* background: linear-gradient(to bottom right, rgba(173, 216, 230, 1), rgba(240, 248, 255, 1)); */
    /* background: radial-gradient(circle, rgba(173, 216, 230, 1), rgba(240, 248, 255, 1)); */
    background-color: #ecf2fe;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    padding: 20px;
    overflow-y: auto;
}

/* 面板显示时的样式 */
#setRightPanel.show {
    right: 0;
}

/* 面板容器的样式 */
#commentRightPanel {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100%;
    background-color: #ecf2fe;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    padding: 20px;
    overflow-y: auto;
}

/* 面板显示时的样式 */
#commentRightPanel.show {
    right: 0;
}

/* 遮罩层，模糊效果 */
#backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色 */
    backdrop-filter: blur(8px); /* 应用模糊效果 */
    z-index: 999; /* 保证在面板下面 */
    display: none; 
}


/*<----------------------------------------评论页面start---------------------------------->*/
.reviews-container {
    display: flex;
    flex-wrap: wrap; /* 使卡片横向排列，并在超出容器时换行 */
    gap: 20px;
    padding: 20px;
    background-color: #ffffff; /* 容器背景色 */
    border-radius: 10px; /* 外围圆角 */

}
/* 页面评论按钮位置及样式 */
.comment-button-page {
    background-color: #007bff; /* 按钮背景色 */
    color: #fff; /* 图标颜色 */
    font-size: 18px;
    padding: 10px 15px;
    border: none;
    border-radius: 50px; /* 圆角 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.comment-button-page i {
    font-size: 20px;
    margin-right: 8px;
}

.comment-button-page:hover {
    background-color: #0056b3; /* 悬停时背景色 */
    transform: scale(1.05); /* 悬停时按钮轻微放大 */
}

.comment-button-page:focus {
    outline: none;
}

/* 卡片容器 */
.comment-card-container {
    display: flex;
    flex-wrap: wrap; /* 卡片超出时自动换行 */
    justify-content: flex-start;
    gap: 20px;
    margin-top: 10px;
}

/* 单个卡片 */
.comment-card {
    width: 270px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-left: 10px;
    margin-right: 10px;
}

/* 卡片头部 */
.comment-card-header {
    display: flex;
    align-items: center;
    padding: 16px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.user-info h5 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.user-info p {
    margin: 0;
    font-size: 12px;
    color: #777;
}

/* 卡片内容 */
.comment-card-body {
    padding: 16px;
    font-size: 14px;
    color: #333;
}

/* 卡片底部 - 点赞和评论按钮 */
.comment-card-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #f7f7f7;
    border-top: 1px solid #ddd;
}

.like-button, .comment-button {
    background: none;
    border: none;
    color: #007bff;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.like-button:hover, .comment-button:hover {
    color: #0056b3;
}


/* 模态框样式 */
.modal-body textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ddd;
    resize: none;
}

.modal-footer .btn {
    font-size: 14px;
}

/*<----------------------------------------评论页面end---------------------------------->*/


